package group.raber.saber.kit;

import org.joda.time.DateTime;

import java.util.Date;

/**
 * Created by cytsir on 17/2/16.
 */
public abstract class DateKit {
    public static final String DATE_TIME_FORMAT="yyyy-MM-dd HH:mm:ss.SSS";

    public static Date now(){
        return new Date();
    }
    public static Date parse(String str){
        return DateTime.parse(str).toDate();
    }
    public static Date parse(Long value){
        return new Date(value);
    }

}
